-
An object conforming to the
MGLOfflineRegionprotocol determines which resources are required by anMGLOfflinePackobject. At present, only instances ofMGLTilePyramidOfflineRegionmay be used asMGLOfflinePackregions, but additional conforming implementations may be added in the future.Declaration
Objective-C
@protocol MGLOfflineRegion <NSObject>Swift
protocol MGLOfflineRegion : NSObjectProtocol
-
MGLOfflineStorage implements a singleton (shared object) that manages offline packs. All of this class’s instance methods are asynchronous, reflecting the fact that offline resources are stored in a database. The shared object maintains a canonical collection of offline packs in its
See morepacksproperty.Declaration
Objective-C
@interface MGLOfflineStorage : NSObjectSwift
class MGLOfflineStorage : NSObject
-
An
MGLOfflinePackrepresents a collection of resources necessary for viewing a region offline to a local database.To create an instance of
See moreMGLOfflinePack, use the+[MGLOfflineStorage addPackForRegion:withContext:completionHandler:]method. A pack created using-[MGLOfflinePack init]is immediately invalid.Declaration
Objective-C
@interface MGLOfflinePack : NSObjectSwift
class MGLOfflinePack : NSObject -
A structure containing information about an offline pack’s current download progress.
See moreDeclaration
Objective-C
struct MGLOfflinePackProgress {}Swift
struct MGLOfflinePackProgress -
The state an offline pack is currently in.
See moreDeclaration
Objective-C
enum MGLOfflinePackState : NSInteger {}Swift
enum MGLOfflinePackState : Int
-
An offline region defined by a style URL, geographic coordinate bounds, and range of zoom levels.
See moreDeclaration
Objective-C
@interface MGLTilePyramidOfflineRegion : NSObject <MGLOfflineRegion, NSSecureCoding, NSCopying>Swift
class MGLTilePyramidOfflineRegion : NSObject, MGLOfflineRegion, NSSecureCoding, NSCopying
Install in Dash
Offline Maps Reference